<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($name); ?></title>
<script type="text/javascript" src="__APP__/statics/jquery.1.4.2.js"></script>
<script type="text/javascript" src="__APP__/statics/js/catelist.js"></script>
<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font-family:"微软雅黑",Arial,Lucida,Verdana,Helvetica,sans-serif;font-size:12px;color:#333;line-height:150%;background:#fff;}
a:link,a:visited{color:#333;text-decoration:none;}
a:hover{color:#317ee7;}
a:active{color:#900;}
/* top */
.top{width:100%;height:25px;line-height:25px;background:url(__APP__/statics/topbg.gif);}
.top2{width:1000px;margin:0 auto;}
.top2-left{float:left;cursor:pointer}
.top2-right{float:right;margin-left:10px;}
/* logo */
.logo{width:1000px;height:80px;margin:0 auto;margin-top:10px;}
.logo span{display:block;float:left;}


.search{display:block;background:#317ee7;width:450px;height:35px;line-height:35px;margin:0 auto;margin-top:15px;float:left;vertical-align:middle}
.search ul{display:block;float:left;}

/* nav */
.category-content{height:35px;position:relative;margin:0 auto;margin-top:10px;z-index:113;background:#317ee7;font-family:"微软雅黑"}
.category-content span{display:block;float:left;text-align:center;width:120px;line-height:35px;font-size:17px;color:#fff}
.category-content span:hover{background:#ffba00}
.allgoods{height:35px;line-height:35px;border:0px;text-align:center;background:#317ee7;color:#fff;font-size:17px}
.category-content .category{width:1000px;position:absolute;top:0px;z-index:113;width:199px;+height:456px;border:1px solid #dadad9;border-top:none;background:#fefefe;box-shadow:1px 1px 1px #dedede;}
.category-content .category-list li{height:72px;border:2px solid #fff;border-right:none;position:relative;z-index:113; vertical-align:bottom;}
.category-content .category-list a:hover{text-decoration:none;color:#D2364C;}
.category-content .category-info{padding-left:12px;}
.category-content .category-name{overflow:hidden;position:relative;padding-top:10px;font:600 16px/30px "宋体";}
.category-content .category-name i{position:absolute;top:13px;width:25px;height:25px;-top:6px;}
.category-content .category-name b{margin-left:4px;font:400 12px/28px "宋体";}
.category-content .category-name a{color:#4c4c4c;}
.category-content .category-name .ml-22{margin-left:35px;}
.category-content .list-nz i{background-position:0 -200px;}
.category-content .list-nanz i{background-position:-23px -200px;}
.category-content .list-tz i{background-position:-48px -200px;}
.category-content .list-ny i{background-position:-72px -200px;}
.category-content .list-xb i{background-position:-96px -200px;}
.category-content .list-xl i{background-position:0 -225px;}
.category-content .c-category-list{font:400 12px/24px "宋体";}
.category-content .c-category-list a{margin-right:8px;color:#626262;}
.category-content .category-info{position:relative;height:72px;overflow:hidden;}
.category-content .category-info em{position:absolute;top:16px;right:10px;width:13px;height:13px;color:#9b9b9b;}
.category-content .category .hover{box-shadow:0px 2px 3px #ccc;margin-left:-1px;padding-left:1px;z-index:999;} 
.category-content .hover .category-info{border:none;text-decoration:none;background:#fff;}
.category-content .menu-item{display:none;position:absolute;left:196px;z-index:11; width:500px;padding:0 0 0 2px;background:#fff;border:none;box-shadow:0px 2px 3px #dedede; border-top:1px solid #bbb9;zoom:1;-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=4)";*filter:progid:DXImageTransform.Microsoft.Shadow(color=#dddddd,direction=135,strength=4);}
.category-content .menu-item .area-in{position:relative; z-index:1; }
.category-content .menu-item .area-bg{padding:10px 0 10px 20px;}
.category-content .menu-in{display:none;}
.category-content .category-list li.hover .category-info{z-index:999;}
.category-list li.hover .menu-in{border:2px solid #dedede;}
.category-list li.hover{border:2px solid #dedede;border-right:none;}

.c-category-list{width:160px;margin-right:1px;padding-bottom:10px;border-bottom:1px solid #f4f4f4;zoom:1;overflow:hidden;height:20px;}
.area-bg dl{float:left;height:30px;width:70px;font:400 12px/24px "宋体";}
</style>
</head>

<body>
<div class="top">
   <div class="top2">
    <span class="top2-left" id="addto">加入收藏夹</span>
	<span class="top2-right"><a href="__APP__/">商城首页</a></span>
	<span class="top2-right"><a href="__GROUP__/Help">客户服务</a></span>
	<span class="top2-right"><a href="__APP__/Member/trade">我的订单</a></span>
	<span class="top2-right">[<a href="__APP__/Member/reg">免费注册</a>]</span>
	<?php if($user == ''): ?><span class="top2-right">
	[<a href="__APP__/Member/login">登录</a>]</span>
	<span class="top2-right"><a href="__APP__/Member/qqlogin" target="_blank"><img src="__APP__/statics/qq_login.png"></a></span>
	<?php else: ?>
	<span class="top2-right">
	<a href="__APP__/Member"><span style="color:#cc0000"><?php echo ($user); ?></span></a>,[<a href="__APP__/Member/loginout">退出</a>]</span><?php endif; ?>
	<span class="top2-right">欢迎来到蚂蚁街！</span>
   </div>
</div>
<div class="logo">
   <span style="width:300px;"><a href="__APP__/"><img src="__APP__/statics/logo-201305.png"></a></span>
<form method="get" action="__GROUP__/List/search">
   <span class="search">
        <ul style="width:350px;height:31px;line-height:31px;padding:3px">
	       <input name="keyword" type="text" style="height:18px;margin-top:0px;padding:5px;border:0px;" size="50">
	   </ul>
	   <ul class="sbox" style="float:left;width:70px;text-align:center;">
	   <input type="image" src="__APP__/statics/search.jpg" height="31" width="59px"></ul>
   </span>
</form>
   <span style="display:block;float:right;margin-top:15px;"><a href='http://localhost/eshop/Help/page/?type=ship&amp;id=2'><img src='__APP__/./ad/SearchR/520a400e754be.jpg' ></a></span>
</div>

<div style="clear:both"></div>
<!--导航菜单-->
<div class="category-content">
	<div style="width:1000px;margin:0 auto">
			<div>
				<span class="all-goods" style="width:200px">全部商品</span>
				<a href="__APP__/"><span class="all-goods" <?php if($current_class == 1): ?>style="background:#ffba00"<?php endif; ?>>首页</span></a>
				<a href="__APP__/Wshop"><span class="all-goods" <?php if($current_class == 2): ?>style="background:#ffba00"<?php endif; ?>>品牌街</span></a>
				<a href="__APP__/Market"><span class="all-goods" <?php if($current_class == 3): ?>style="background:#ffba00"<?php endif; ?>>蚂蚁超市</span></a>
				<a href="__APP__/Fruit"><span class="all-goods" <?php if($current_class == 4): ?>style="background:#ffba00"<?php endif; ?>>蚂蚁预售</span></a>
				<a href="__APP__/Cart/show.html"><span class="all-goods" style="float:right;width:200px"><img src="__APP__/statics/cart.png">购物车（<i id="cart_num"><?php echo ($cart_num); ?></i>）</span></a>
			</div>

			<div class="category">
			    <ul class="allgoods">全部分类</ul>
				<ul class="category-list" style="display:none">
<?php if(is_array($cat)): $i = 0; $__LIST__ = $cat;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cat): $mod = ($i % 2 );++$i;?><li class="js_toggle">
						<div class="category-info list-xl">
							<h3 class="category-name">
								<i <?php if($cat["icon"] != ''): ?>style="background:url(__APP__/statics/icons/cate/<?php echo ($cat["icon"]); ?>)"<?php else: ?>style="background:url(__APP__/statics/icons/cate/c.gif)"<?php endif; ?>></i>
								<a href="__APP__/c/<?php echo ($cat["cat_id"]); ?>" class="ml-22"><?php echo ($cat["cat_name"]); ?></a>
							</h3>
							<p class="c-category-list">
			<?php if(is_array($cat[rec])): $i = 0; $__LIST__ = $cat[rec];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rec): $mod = ($i % 2 );++$i;?><a href="__APP__/c/<?php echo ($rec["cat_id"]); ?>"><?php echo ($rec["cat_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
							</p>
							<em>&gt;</em>
						</div>
						<!--弹出右侧-->
						<div class="menu-item menu-in">
							<div class="area-bg">
			<?php if(is_array($cat[son])): $i = 0; $__LIST__ = $cat[son];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$son): $mod = ($i % 2 );++$i;?><dl><a href="__APP__/c/<?php echo ($son["cat_id"]); ?>"><?php echo ($son["cat_name"]); ?></a></dl><?php endforeach; endif; else: echo "" ;endif; ?>
							</div>
						</div>
						<!--弹出右侧-->
					</li><?php endforeach; endif; else: echo "" ;endif; ?>

				</ul>
			</div>
	</div>
</div>

<script type="text/javascript"> 
$(".category").mouseover(function(){
	$(".category-list").show();
})
$(".category").mouseout(function(){
	$(".category-list").hide();
})
</script>

<style>
.center{width:1000px;margin:0 auto;margin-top:10px}
.left{width:160px;border:1px solid #dddddd;float:left;}
.main{width:830px;float:right;}
.title2{display:block;background:#317ee7;color:#fff;text-align:left;font-size:16px;height:25px;line-height:25px}
.left dl{display:block;background:#fff;font-size:13px;height:25px;line-height:25px}
.help{margin-top:5px}

.goods a{color:#0066CC}
.total_money{font-weight:bold;color:#333333;margin-top:10px}
.dly_money{color:#999999}
.dly_money:hover{color:#ffba00}
.nopay{font-weight:bold;color:#FF0000;margin-top:10px}
.nopay a{color:#FF0000}
.noship{font-weight:bold;color:#0066FF;margin-top:10px}
.shipping{font-weight:bold;color:#0066FF;margin-top:10px}

.order td{border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px;border-bottom-color:#E6E6E6}
.order_list{border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px}
.title{background-color:#F3F3F3;height:20px}
.order_list img{height:50px;width:50px}


.index_page{width:840px;margin:0 auto;float:right;margin-top:10px;color:#0066CC;cursor:pointer;}
.page{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC;cursor:pointer;}
.page:hover{color:#0066CC}
.page_current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;}

.recomment{position:relative;width:830px;margin:20px auto;height:230px;overflow:hidden;float:right;border:1px solid #e6e6e6}
/* limit-buy-hd */
.limit-buy-hd{position:relative;height:37px;background:#f8f8f8 url(__APP__/statics/recomment/title.gif) no-repeat 80px 0;border-bottom:1px solid #e6e6e6;line-height:37px}
.limit-buy-hd h2{float:left;overflow:hidden;display:inline;width:85px;font-size:14px;padding:0 0 0 10px;}
/* limit-buy-nav */
.limit-buy-nav{float:right;width:60px;margin:7px 10px 0 0}
.limit-buy-nav span{float:left;width:44px;height:21px;font-size:14px;line-height:21px;text-align:center}
.limit-buy-nav em{margin-right:1px;color:#ea5501;font-weight:700}
.limit-buy-nav .prev,.limit-buy-nav .next{float:left;overflow:hidden;width:8px;height:9px;margin:6px 0 0;background:url(__APP__/statics/recomment/arrowbg.png) no-repeat -40px -60px}
.limit-buy-nav .next{background-position:-52px -180px}
/* limit-buy-bd */
.limit-buy-bd{overflow:hidden;position:absolute;top:38px;left:0;width:9000px;z-index:1}
/* btn-prev */
.btn-prev,.btn-next{overflow:hidden;position:absolute;display:none;top:93px;width:27px;height:48px;background:url(__APP__/statics/recomment/arrowbg.png) no-repeat 0 -60px;z-index:10}
.btn-prev{left:0}
.btn-next{right:0;background-position:-40px -60px}
.btn-prev:hover{background-position:0 -60px}
.btn-prev:active{background-position:0 -120px}
.btn-next:hover{background-position:-40px -60px}
.btn-next:active{background-position:-40px -120px}
/* products */
.products{float:left;width:831px;text-align:center;}
.products li{float:left;position:relative;width:164px;height:180px;padding:10px 15px 0;margin-left:7px}
.products li .pic{overflow:hidden;position:relative;width:120px;height:120px;margin:0 auto 4px;border:1px solid #dddddd;padding:5px}
.products li .pic img{width:120px;height:120px}
.products li .price{position:absolute;top:107px;right:15px;background:url(__APP__/statics/recomment/pricebg.gif) no-repeat;padding:6px 0 0 8px;width:74px;height:26px;line-height:26px;font-size:14px;font-weight:800;color:#fff;text-align:center}
.products li .name{overflow:hidden;height:36px;margin:0 0 2px;line-height:18px;text-align:center}
</style>
<div class="center">您的位置：<a href="__APP__">首页</a>-><a href="__GROUP__/Member"><font color="#317ee7">会员中心</font></a></div>
<div class="center">
   <div class="left">
          <div class="help" style="margin-top:0px">
      <span class="title2">&nbsp;&nbsp;会员信息</span>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/member_info">基本信息</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/change_pwd">修改密码</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/myaddress">收货地址管理</a></dl>
     </div>

    <div class="help">
	  <span class="title2">&nbsp;&nbsp;订单中心</span>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/trade">全部订单</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/trade/status/1">未完成订单</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/trade/status/2">已发货订单</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/trade/status/5">已完成订单</a></dl>
    </div>

     <div class="help">
	  <span class="title2">&nbsp;&nbsp;优惠券</span>
      <dl>&nbsp;&nbsp;>><a href="__URL__/mycoupon">我的优惠券</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/add_coupons/?action=show">转换优惠券</a></dl>
     </div>

     <div class="help">
	  <span class="title2">&nbsp;&nbsp;礼品卡管理</span>
      <dl>&nbsp;&nbsp;>><a href="__URL__/wallet">账户余额</a></dl>
	  <dl>&nbsp;&nbsp;>><a href="__URL__/wallet_his">历史记录</a></dl>
    </div>

	<div class="help">
	  <span class="title2">&nbsp;&nbsp;收藏夹</span>
      <dl>&nbsp;&nbsp;>><a href="__URL__/goodstore">我的收藏</a></dl>
    </div>

   </div>

   <div class="main">
   <!--订单列表-->
   <div class="order">
         <table border="0" width="830" style="border-collapse: collapse; border-left-width: 1px; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" height="27">
		<tr style="background:url(__APP__/statics/bg009.gif)">
			<td width="70" align="center">图片</td>
			<td width="225" align="left">商品</td>
			<td width="120" align="center">单价</td>
			<td width="60" align="center">数量</td>
			<td width="50" align="center">服务</td>
			<td width="120" align="center">订单金额</td>
			<td width="91" align="center">当前状态</td>
			<td align="right">
			<select size="1" name="status" id="status">
			  <option value="0">全部订单</option>
			  <option value="1">待付款</option>
			  <option value="2">已发货</option>
			  <option value="3">退货中</option>
			  <option value="4">退款中</option>
			  <option value="5">订单完成</option>
	       </select>
		   <input type="text" id="curent" value="<?php echo ($status); ?>" style="display:none">
	       </td>
		</tr>
		</table>
	  </div>

<?php if(is_array($order)): $i = 0; $__LIST__ = $order;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$order): $mod = ($i % 2 );++$i;?><div class="order">
		        <table border="1" width="830" style="border-collapse: collapse" bordercolor="#E6E6E6" cellpadding="5">
				<tr><td colspan="4" class="title">&nbsp;
				订单编号：<?php echo ($order["order_id"]); ?>&nbsp;&nbsp;
				创建时间：<?php echo (date("Y-m-d h:i:s",$order["create_time"])); ?></td></tr>
				<tr>
					<td width="510">
						<table border="0" width="510">
					<?php if(is_array($order[item])): $i = 0; $__LIST__ = $order[item];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?><tr>
							<td width="60" class="order_list">
							<?php if($item["s_pic"] != ''): ?><img src="__APP__/<?php echo ($item["s_pic"]); ?>" />
							<?php else: ?><img src="__APP__/statics/none.gif" /><?php endif; ?>
							</td>
							<td width="190" class="order_list"><span class="goods"><a href="<?php echo U('Goods/item?id='.$item['goods_id']);?>" target="_blank"><?php echo ($item["name"]); ?></a></span></td>
							<td width="60" class="order_list" align="center"><?php echo ($item["price"]); ?></div></td>
							<td width="80" class="order_list" align="center"><?php echo ($item["num"]); ?></td>
							<td class="order_list" align="center">　</td>
						</tr><?php endforeach; endif; else: echo "" ;endif; ?>
						</table>
					</td>
					<td width="107" align="center" valign=top><div class="total_money"><?php echo ($order["final_money"]); ?></div><span class="dly_money">(含运费:<?php echo ($order["dly_money"]); ?>)</span></td>
					<td width="91" align="center" valign=top>
<?php if(($order["pay_status"] == 0) AND ($order["ship_status"] == 0) AND ($order["status"] == 'active')): ?><div class="nopay"><a href="<?php echo U('Pay/ready?order='.$order['order_id']);?>" target="_blank">等待付款</a></div>
<?php elseif(($order["pay_status"] == 1) AND ($order["ship_status"] == 0) AND ($order["is_delivery"] == 'true') AND ($order["status"] == 'active')): ?>
<div class="noship">等待发货</div>
<?php elseif(($order["pay_status"] == 1) AND ($order["ship_status"] == 0) AND ($order["is_delivery"] == 'false') AND ($order["status"] == 'active')): ?>
<div class="nopay">待上门取货</div>
<?php elseif(($order["pay_status"] == 0) AND ($order["ship_status"] == 1) AND ($order["is_onlinpay"] == 'false') AND ($order["status"] == 'active')): ?>
<div class="shipping">已发货</div><span class="dly_money">（货到付款）</span>
<?php elseif(($order["pay_status"] == 1) AND ($order["ship_status"] == 1) AND ($order["status"] == 'active')): ?>
<div class="shipping">已发货</div><a href="javascript:viewShip(<?php echo ($order["order_id"]); ?>)"><span class="dly_money">(配送信息)</span></a>
<?php elseif(($order["pay_status"] == 1) AND ($order["ship_status"] == 2) AND ($order["status"] == 'active')): ?>
<div class="nopay">退货中</div>
<?php elseif(($order["pay_status"] == 2) AND ($order["ship_status"] == 3) AND ($order["status"] == 'active')): ?>
<div class="nopay">退款中</div>
<?php elseif(($order["pay_status"] == 3) AND ($order["ship_status"] == 3)): ?>
<div class="noship">已退款</div>
<?php elseif($order["status"] == 'dead'): ?>
<div class="nopay">订单已取消</div>
<?php elseif($order["status"] == 'finish'): ?>
<div class="nopay"><font color="green">交易成功</font></div><a href="javascript:viewShip(<?php echo ($order["order_id"]); ?>)"><span class="dly_money">(配送信息)</span></a><?php endif; ?>
					</td>
					<td width="79" align="center" valign=top>
<?php if(($order["pay_status"] == 0) AND ($order["ship_status"] == 0) AND ($order["is_onlinpay"] == 'true') AND ($order["status"] == 'active')): ?><div class="nopay"><a href="<?php echo U('Pay/ready?order='.$order['order_id']);?>" target="_blank"><img src="__APP__/statics/pay.gif"/></a></div>
<?php elseif(($order["pay_status"] == 0) AND ($order["ship_status"] == 0) AND ($order["is_onlinpay"] == 'false') ): ?>
<div class="nopay"><img src="__APP__/statics/huodao.gif"/></div><?php endif; ?>
<?php if(($order["status"] == 'finish') AND ($order["finish_comm"] == '0')): ?><a href="__GROUP__/Goods/goodComm/?order=<?php echo ($order["order_id"]); ?>"><div style="margin-top:10px;color:#317ee7;font-weight:bold">评价</div></a>
<?php elseif(($order["status"] == 'finish') AND ($order["finish_comm"] == '1')): ?>
<div style="margin-top:10px;color:#999999">已评价</div><?php endif; ?>
                    </td>
				</tr>
				</table>
		  </div><?php endforeach; endif; else: echo "" ;endif; ?>
<?php if($order == ''): ?><div style="width:300px;margin:0 auto;margin-top:50px;font-size:13px">您还没有购买过商品呦！<a href="__APP__"><font color="#317ee7">立刻购买</font></a></div><?php endif; ?>
        <div class="index_page"><div style="width:600px;margin:0 auto;float:right"><?php echo ($page); ?></div></div>
        </div>


		<div class="recomment" id="J-lb">
			<div class="limit-buy-hd">
				<h2>猜您喜欢</h2>
				<div class="limit-buy-nav" id="J-lbn">
					<a href="javascript:void(0)" class="prev"></a>
					<span>
						<em id="J-lbcp">1</em>/4
					</span>
					<a href="javascript:void(0)" class="next"></a>
				</div>
			</div>

			<a href="javascript:void(0);" class="btn-prev"></a>
			
			<div class="limit-buy-bd" id="limit-buy">
			
				<ul class="products">
<?php if(is_array($goods_hot)): $i = 0; $__LIST__ = $goods_hot;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_hot): $mod = ($i % 2 );++$i;?><li>
						<p class="pic"><a href="__APP__/item/<?php echo ($goods_hot["goods_id"]); ?>.html" target="_blank"><img src="__APP__/<?php echo ($goods_hot["m_pic"]); ?>" alt="<?php echo ($goods_hot["goods_name"]); ?>"/></a></p>
						<p class="name"><a href="__APP__/item/<?php echo ($goods_hot["goods_id"]); ?>.html" target="_blank"><?php echo ($goods_hot["goods_name"]); ?></a></p>
						<p class="price">￥<?php echo ($goods_hot["price"]); ?></p>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				
				<ul class="products">
<?php if(is_array($goods_coup)): $i = 0; $__LIST__ = $goods_coup;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_coup): $mod = ($i % 2 );++$i;?><li>
						<p class="pic"><a href="__APP__/item/<?php echo ($goods_coup["goods_id"]); ?>.html" target="_blank"><img src="__APP__/<?php echo ($goods_coup["m_pic"]); ?>" alt="<?php echo ($goods_coup["goods_name"]); ?>"/></a></p>
						<p class="name"><a href="__APP__/item/<?php echo ($goods_coup["goods_id"]); ?>.html" target="_blank"><?php echo ($goods_coup["goods_name"]); ?></a></p>
						<p class="price">￥<?php echo ($goods_coup["price"]); ?></p>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>

				<ul class="products">
<?php if(is_array($goods_new)): $i = 0; $__LIST__ = $goods_new;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_new): $mod = ($i % 2 );++$i;?><li>
						<p class="pic"><a href="__APP__/item/<?php echo ($goods_new["goods_id"]); ?>.html" target="_blank"><img src="__APP__/<?php echo ($goods_new["m_pic"]); ?>" alt="<?php echo ($goods_new["goods_name"]); ?>"/></a></p>
						<p class="name"><a href="__APP__/item/<?php echo ($goods_new["goods_id"]); ?>.html" target="_blank"><?php echo ($goods_new["goods_name"]); ?></a></p>
						<p class="price">￥<?php echo ($goods_new["price"]); ?></p>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				
				<ul class="products">
<?php if(is_array($goods_rec)): $i = 0; $__LIST__ = $goods_rec;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$goods_rec): $mod = ($i % 2 );++$i;?><li>
						<p class="pic"><a href="__APP__/item/<?php echo ($goods_rec["goods_id"]); ?>.html" target="_blank"><img src="__APP__/<?php echo ($goods_rec["m_pic"]); ?>" alt="<?php echo ($goods_rec["goods_name"]); ?>"/></a></p>
						<p class="name"><a href="__APP__/item/<?php echo ($goods_rec["goods_id"]); ?>.html" target="_blank"><?php echo ($goods_rec["goods_name"]); ?></a></p>
						<p class="price">￥<?php echo ($goods_rec["price"]); ?></p>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
				
			</div>
			
			<a href="javascript:void(0);" class="btn-next"></a>
		</div>



   </div>

</div>


<script src="__APP__/statics/webox/webox.js"></script>
<link href="__APP__/statics/webox/jquery-webox.css" rel="stylesheet" type="text/css">
<script>
$(function(){
     var curent=$("#curent").val();
     $("#status option").each(function(){
        if($(this).val()==curent){
		    $(this).attr("selected",'true');
		}
     })
})
$("[name=status]").change(function(){
   var status=$(this).val();
   window.location.href="__URL__/trade/status/"+status;
})

function viewShip(t){
		$.webox({
			height:280,
			width:500,
			bgvisibel:true,
			title:'订单：'+t+'-配送信息',
			iframe:'__GROUP__/Member/viewShip/?order='+t
		});
}
</script>

<script type="text/javascript">
$(document).ready(function(){
	
	var lb = $("#limit-buy"),
		lb_cur = 1,
		lbp_w = lb.find(".products").width();
		lb_timer = null;
	t = 1;
	function showLimitBuyProducts(){
		if(lb_cur < 1){
			lb_cur = 4;
		} else if(lb_cur > 4){
			lb_cur = 1;
		}
		$("#J-lbcp").html(lb_cur);
		var products = $("#limit-buy .products").hide().eq(lb_cur-1).show(),
			ta = products.find("textarea");
			
		if(ta.length){
			products.html(ta.val());
		}
	}
	lb_timer = setInterval(function(){
		lb_cur++;
		showLimitBuyProducts();
	}, 4000);
	
	$("#J-lbn .prev, #J-lb .btn-prev").click(function(){
		lb_cur--;
		showLimitBuyProducts();
	});
	$("#J-lbn .next, #J-lb .btn-next").click(function(){
		lb_cur++;
		showLimitBuyProducts();
	});
	$("#J-lb").hover(function(){
			clearInterval(lb_timer);
			lb_timer = null;
			$("#J-lb .btn-prev, #J-lb .btn-next").show();
		}, function(){
			lb_timer = setInterval(function(){
				lb_cur++;
				showLimitBuyProducts();
			}, 10000);
			$("#J-lb .btn-prev, #J-lb .btn-next").hide();
	});
	
});
</script> 
<div style="clear:both"></div>
<br>
<div style="width:1000px;margin:0 auto;margin-top:20px;height:170px;border-bottom:1px solid #dddddd;border-top:1px solid #dddddd">
   <div style="padding:10px;float:left;margin-left:5px;width:190px">
     <div style="width:150px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">购物指南</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">新手上路</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">顾客必读</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">联系客服</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">常见问题</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">购物流程</a></li>
	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/1.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:190px">
     <div style="width:150px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">配送方式</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">送货上门</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">配送时效</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">送货时间</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">物流费用</a></li>
	 </div>
	 <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/2.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:190px">
      <div style="width:150px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">支付方式</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">货到付款</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">网银支付</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">礼品卡支付</a></li>

	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/3.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:190px">
      <div style="width:150px;float:right">
		 <li style="color:#666666;font-size:15px;font-weight:bold">特色服务</li>
		 <li style="margin-top:10px"><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">售后服务</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">质量保障</a></li>
		 <li><a href="__APP__/Help/page/?type=zhinan&id=5" target="_blank">价格优势</a></li>
	  </div>
	  <div style="width:37px;text-align:right;float:right"><img src="__APP__/statics/bottom/4.jpg"></div>
   </div>
   <div style="padding:10px;float:left;width:100px">
     <li style="color:#666666;font-size:15px;font-weight:bold">微信扫一扫</li>
     <li style="margin-top:10px;border:1px solid #dddddd;width:100px"><img src="__APP__/statics/wechat.jpg" width="100px"></li>
   </div>
</div>

<div style="text-align:center;width:1200px;margin:0 auto;;margin-top:10px">
<?php echo C('BOTTOM'); ?>
<br><br>
<a href="http://webscan.360.cn/index/checkwebsite/url/www.mayijie.com" target="_blank"><img height="41" src="http://img.webscan.360.cn/status/pai/hash/55b4861c61020a4e248b99462bba432c"/></a>
<img src="__APP__/statics/chengxin.png">
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=26985878" charset="UTF-8"></script>
</div>

<style>
#floatPanel .ctrolPanel{width:36px;height:166px;background:#fff url('__APP__/statics/icons/kefu_bg.gif') no-repeat left top;border:solid 1px #ddd;position:fixed;right:25px;top:50%;overflow:hidden;z-index:10000; _position:absolute; /* for IE6 */_top:expression(documentElement.scrollTop + 300);}
#floatPanel .ctrolPanel a{width:34px;font-size:12px;color:#ff6600;letter-spacing:1px;text-align:center;overflow:hidden;}
#floatPanel .ctrolPanel .arrow{height:29px;line-height:28px;display:block;margin:1px auto;}
#floatPanel .ctrolPanel .arrow span{display:none;}
#floatPanel .ctrolPanel .arrow:hover{background:#f4f4f4;}
#floatPanel .ctrolPanel .arrow:hover span{display:block;}
#floatPanel .ctrolPanel .contact{height:60px;display:block;margin:2px auto;}
#floatPanel .ctrolPanel .contact span{line-height:90px;}
#floatPanel .ctrolPanel .qrcode{height:40px;display:block;margin:2px auto;}
#floatPanel .ctrolPanel .qrcode span{display:none;}

#floatPanel .popPanel{width:230px;height:242px;position:fixed;right:70px;top:50%;z-index:10000;overflow:hidden;display:none;_position:absolute; /* for IE6 */_top:expression(documentElement.scrollTop + 300); }
#floatPanel .popPanel .popPanel-inner{width:230px;height:242px;position:relative;overflow:hidden;}
#floatPanel .popPanel .popPanel-inner .arrowPanel{width:10px;height:240px;position:absolute;right:1px;top:102px;}
#floatPanel .popPanel .popPanel-inner .arrowPanel .arrow01{width:0;height:0;font-size:0;line-height:0;border-top:10px solid transparent;_border-top:10px solid black;_filter:chroma(color=black);border-right:10px solid transparent;_border-right:10px solid black;_filter:chroma(color=black);border-bottom:10px solid transparent;_border-bottom:10px solid black;_filter:chroma(color=black);border-left:10px solid #ddd;position:absolute;bottom:0;position:absolute;left:2px;top:0;}
#floatPanel .popPanel .popPanel-inner .arrowPanel .arrow02{width:0;height:0;font-size:0;line-height:0;border-top:10px solid transparent;_border-top:10px solid black;_filter:chroma(color=black);border-right:10px solid transparent;_border-right:10px solid black;_filter:chroma(color=black);border-bottom:10px solid transparent;_border-bottom:10px solid black;_filter:chroma(color=black);border-left:10px solid #fff;position:absolute;bottom:0;position:absolute;left:0;top:0;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel{width:220px;height:240px;text-align:center;background:#fff;border:solid 1px #ddd;position:absolute;left:0;top:0;overflow:hidden;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel img{width:200px;height:200px;border:none;padding:10px 10px 5px 10px;}
#floatPanel .popPanel .popPanel-inner .qrcodePanel span{font-size:12px;color:#666;line-height:24px;letter-spacing:1px;}
</style>
<div id="floatPanel">

	<div class="ctrolPanel">
		<a class="arrow" href="#"><span>顶部</span></a>
		<a class="contact" href="http://wpa.qq.com/msgrd?V=1&Uin=<?php echo C('KEFU_QQ'); ?>&Site=<?php echo C('WEB_NAME'); ?>&Menu=yes" 
target="_blank"><span>客服</span></a>
		<a class="qrcode" href="#"><span>微信二维码</span></a>
		<a class="arrow" href="#"><span>底部</span></a>
	</div>
	
	<div class="popPanel">
		<div class="popPanel-inner">
			<div class="qrcodePanel"><img src="__APP__/statics/wechat.jpg" /><span>微信扫描二维码关注“蚂蚁街”</span></div>
			<div class="arrowPanel">
				<div class="arrow01"></div>
				<div class="arrow02"></div>
			</div>
		</div>
	</div>
	
</div>

<script language="javascript">
   $("#addto").click(function(){
      var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd':'Ctrl';
   if(document.all)
   {
      window.external.addFavorite(window.location,document.title);
   }
   else if(window.sidebar)
   { 
       window.sidebar.addPanel(document.title,window.location);
   }
   else{
       alert('添加失败，请用Ctrl+D进行添加');
   }
   });
</script>
<script type="text/javascript">
$(function(){
	
	// 页面浮动面板
	$("#floatPanel > .ctrolPanel > a.arrow").eq(0).click(function(){
		$("html,body").animate({scrollTop :0}, 800);
		return false;
	});
	$("#floatPanel > .ctrolPanel > a.arrow").eq(1).click(function(){
		$("html,body").animate({scrollTop : $(document).height()}, 800);
		return false;
	});

	var objPopPanel = $("#floatPanel > .popPanel");	
	var w = objPopPanel.outerWidth();
	
	$("#floatPanel > .ctrolPanel > a.qrcode").bind({mouseover:function(){
		objPopPanel.css("width","0px").show();
		objPopPanel.animate({"width" : w + "px"},300);
		return false;
	},mouseout : function(){
			objPopPanel.animate({"width" : "0px"},300);
			return false;
			objPopPanel.css("width",w + "px");
		}	
	});
	
});
</script>
</body>
</html>